<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<head>
    <%--<base href="<%=basePath%>"/>--%>
    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改商品</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/address.js"></script>

</head>
<body onload='getProvince()'>
<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">修改商品信息</h3>
    <form action="/goods?method=modifyGoods&currentPage=1&gid=${goods.id}" method="post">
        <div class="form-group">
            <label for="name">商品名：</label>
            <input type="text" class="form-control" id="name" name="gname"  readonly="readonly" value="${goods.gname}" placeholder="请输入姓名" />
        </div>



        <div class="form-group">
            <label for="number">库存：</label>
            <input  class="form-control" id="number"  name="number" value="${goods.number}" />
        </div>
        <div class="form-group">
            <label for="price">价格：</label>
            <input  class="form-control" id="price"  name="price" value="${goods.price}" />
        </div>






        <div class="form-group" style="text-align: center ;margin-top: 20px">
            <input class="btn btn-primary" type="submit" value="提交" />
            <input class="btn btn-default" type="reset" value="重置"  onclick="window.location.href='#';" />
<%--            <input class="btn btn-default" type="button" value="返回" />--%>
            <input  class="btn btn-default" type="button"  value="返回" onclick="window.location.href='/goods?method=showAll&currentPage=1';"/>
        </div>
    </form>
</div>

</body>
</html>
